Linux Command learning Summary: rmdir, linuxrmdir
Command introduction:
This command is used to delete an empty directory. If the directory is not empty, an error occurs. You can use rm to delete files in the directory and then use rmdir to
Introduction to Commands:
The rmdir command is used to delete an empty directory and an error occurs if the directory is not empty. After you can use RM to delete a file in a directory, use RmDir to delete the directory. You can also use RM-RF
RM (1) User Commands RM (1)NAMERm-remove Files or directoriesSynopsisRM [OPTION] ... FILE ...DESCRIPTIONThis manual page documents the GNU version of RM. RM removes eachSpecified file. By default, it does not remove directories.If the-i
Yesterday I learned the command to create a directory mkdir, and then learn about the commands for deleting files and directories in Linux: the RM command.RM is a dangerous command, especially when used, especially for novices, or the entire system
Differences between Linux commands rmdir and rm
Rmdir is a command that corresponds to mkdir. Mkdir is used to create a directory, while rmdir is the command to delete a directory.
The rm command can delete files or directories at the same
The unlink () function deletes files, the mkdir () function creates directories, and the rmdir () function deletes directories. these methods are often used in file-related processing methods, you may want to know about unlink () function deletion
First, let's introduce the rmdir () function.
PHP rmdir () function
rmdir-Delete Empty Directory
Grammar:
BOOL RmDir (String $dirname [, Resource $context])
An attempt was made to delete the directory specified by DirName. The directory must be
I. Introduction to the establishment of a directory mkdir commandThe mkdir command is used to create the specified directory. When you create a directory, the current user has read access to the directory where the action is required. If the
Unlink () function deletes file, mkdir () function creates directory, RmDir () function deletes directory
Copy Code code as follows:
unlink () function Use example
?
To delete a file using the Unlink function
$filename =
The unlink () function deletes files, the mkdir () function creates directories, and the rmdir () function deletes directories.
Copy codeThe Code is as follows:
unlink () function instance
// Use the unlink function to delete an object
$
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.